package org.raymond.iworks.study.basic.designpattern.mediator;

import lombok.Getter;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@Getter
public abstract class Colleague {
    private Mediator mediator;
    private String name;
    public Colleague(Mediator mediator, String name){
        this.mediator = mediator;
        this.name = name;
    }
    public Mediator getMediator(){
        return mediator;
    }
    public abstract void sendMessage(int stateChange);
}
